package app.vendorportal.api.data.request;

import app.vendorportal.api.data.ProductInfo;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Bribin
 */
@XmlRootElement(name = "refresh-full-products-request")
@XmlAccessorType(XmlAccessType.FIELD)
public class RefreshFullProductsRequest {

    @XmlElementWrapper(name = "product-info-list")
    @XmlElement(name = "product-info")
    private final List<ProductInfo> productInfos = new ArrayList<ProductInfo>();

    public List<ProductInfo> getProductInfos() {
        return productInfos;
    }

}
